﻿using System;
using System.Collections.Generic;

using SIG.Model;
using System.Threading.Tasks;
using System.Threading;

namespace SIG.Service
{
    public interface ILinkService : IEntityService<Link>
    {
        Task<IList<Link>> GetActiveElementsAync(CancellationToken cancellationToken = default(CancellationToken));
        Link GetLinkDetail(int id);
        List<Link> GetPagedActiveElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);

        List<Link> GetPagedElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);
      
        IEnumerable<Link> LatesterLinks(int count);
        IEnumerable<Link> LatesterLinks(int count, int categoryId);
    }
}
